package com.dabao.dao;

import com.dabao.query.BaseQuery;

import java.util.List;

/**
 * Created by card on 16/4/15.
 */
public interface BaseDao<T, Q extends BaseQuery> {

    int insert(T t);

    int update(T t);

    List<T> selectList(Q q);

    int selectCount(Q q);

    int delete(Integer id);
}
